package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售订单对象 mes_sord
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
public class MesSord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售订单id */
    private String id;

    /** 销售订单编码 */
    @Excel(name = "销售订单编码")
    private String sordId;

    public String getOldSordId() {
        return oldSordId;
    }

    public void setOldSordId(String oldSordId) {
        this.oldSordId = oldSordId;
    }

    private String oldSordId;

    /** 订单名 */
    @Excel(name = "订单名")
    private String sordName;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String prodId;

    /** 产品数量 */
    @Excel(name = "产品数量")
    private Long prodNum;

    /** 下单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sordStartTime;

    /** 交货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sordFinTime;

    /** 订单状态(0未发布计划/1已发布计划/2已发货/3已完成) */
    @Excel(name = "订单状态(0未发布计划/1已发布计划/2已发货/3已完成)")
    private Long sordStatus;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String clientId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setSordId(String sordId) 
    {
        this.sordId = sordId;
    }

    public String getSordId() 
    {
        return sordId;
    }
    public void setSordName(String sordName) 
    {
        this.sordName = sordName;
    }

    public String getSordName() 
    {
        return sordName;
    }
    public void setProdId(String prodId) 
    {
        this.prodId = prodId;
    }

    public String getProdId() 
    {
        return prodId;
    }
    public void setProdNum(Long prodNum) 
    {
        this.prodNum = prodNum;
    }

    public Long getProdNum() 
    {
        return prodNum;
    }
    public void setSordStartTime(Date sordStartTime) 
    {
        this.sordStartTime = sordStartTime;
    }

    public Date getSordStartTime() 
    {
        return sordStartTime;
    }
    public void setSordFinTime(Date sordFinTime) 
    {
        this.sordFinTime = sordFinTime;
    }

    public Date getSordFinTime() 
    {
        return sordFinTime;
    }
    public void setSordStatus(Long sordStatus) 
    {
        this.sordStatus = sordStatus;
    }

    public Long getSordStatus() 
    {
        return sordStatus;
    }
    public void setClientId(String clientId) 
    {
        this.clientId = clientId;
    }

    public String getClientId() 
    {
        return clientId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sordId", getSordId())
            .append("sordName", getSordName())
            .append("prodId", getProdId())
            .append("prodNum", getProdNum())
            .append("sordStartTime", getSordStartTime())
            .append("sordFinTime", getSordFinTime())
            .append("sordStatus", getSordStatus())
            .append("clientId", getClientId())
            .toString();
    }
}
